module.exports = {
  base: '/blog-website/',
  locales: {
    '/': {
      lang: 'zh-CN',
    },
  },
  title: '',
  description: '',
  dest: 'public',
  head: [
    ['link', { rel: 'icon', href: '/favicon.ico' }],
    [
      'meta',
      {
        name: 'viewport',
        content: 'width=device-width,initial-scale=1,user-scalable=no',
      },
    ],
  ],
  theme: 'reco',
  themeConfig: {
    author: '槐序',
    nav: [
      { text: '主页', link: '/', icon: 'reco-home' },
      { text: '时间轴', link: '/timeline/', icon: 'reco-date' },
      {
        text: '工具推荐',
        icon: 'reco-message',
        items: [
          { text: 'CodeSandbox', link: 'https://codesandbox.io' },
          { text: 'Notion', link: 'https://www.notion.so' },
          {
            text: '正则表达式手册',
            link: 'https://tool.oschina.net/uploads/apidocs/jquery/regexp.html',
          },
          {
            text: 'React Api',
            link: 'https://mp.weixin.qq.com/s?__biz=Mzg2NjUxOTM2Mg==&mid=2247496638&idx=1&sn=58924ba4e3663d1977e1443e8a44f483&chksm=ce4b2393f93caa854e99191df6f9fdbc2729394f20a0fcea64a5edb0286a436b77ce1499ad5a&mpshare=1&scene=1&srcid=0903dW38wDHlspuQbcXCbaX4&sharer_sharetime=1662172410774&sharer_shareid=d5ee4c6a5d0532faba5b96fc8308b250&version=4.0.9.99149&platform=mac#rd',
          },
        ],
      },
      {
        text: '项目预览',
        icon: 'reco-other',
        items: [
          {
            text: 'React 组件库',
            link: 'https://chenwande.github.io/wonder-react/',
          },
          {
            text: 'React Native 组件库',
            link: 'https://chenwande.github.io/wonder-rn/',
          },
          { text: 'JIRA 项目', link: 'https://chenwande.github.io/' },
          { text: 'H5 记账', link: 'https://chenwande.gitee.io/keep-accounts' },
          {
            text: '多任务优化',
            link: 'https://chenwande.gitee.io/strucural-balance-website',
          },
          {
            text: 'tailwind 留言板',
            link: 'https://comments-tailwind-vue-five.vercel.app',
          },
          {
            text: 'Vue3 简易组件库',
            link: 'https://chenwande.gitee.io/lemon-ui-website',
          },
          {
            text: 'Vue2 简易组件库',
            link: 'https://chenwande.gitee.io/moon-ui-website',
          },
        ],
      },
    ],
    sidebar: {
      '/docs/jira/': [
        'init-react-app',
        'mock',
        'json-server',
        'ErrorBoundary',
        'css-in-js',
        'grid',
        'TypeScript',
        'utility-type',
        'util-functions',
        'util-hooks',
        'project-auth',
        'fragment-knowledge',
        'auto-test',
        'react-performance',
        'react-query',
        'redux',
        'util-components',
      ],
      '/docs/valet-inquiry/': ['upload-input', 'auto-text-area', 'scroll-deal'],
      '/docs/interview/': [
        'html-css',
        'js-base',
        'js-write',
        'dom',
        'http',
        'ts',
        'vue',
        'react',
        'webpack-vite',
        'node',
        'event-loop',
        'browser',
      ],
    },
    type: 'blog',
    // 博客设置
    blogConfig: {
      category: {
        location: 2, // 在导航栏菜单中所占的位置，默认2
        text: '分类', // 默认 “分类”
      },
      tag: {
        location: 3, // 在导航栏菜单中所占的位置，默认3
        text: '标签', // 默认 “标签”
      },
    },
    friendLink: [
      {
        title: '午后南杂',
        desc: 'Enjoy when you can, and endure when you must.',
        email: '1156743527@qq.com',
        link: 'https://www.recoluan.com',
      },
    ],
    logo: '/logo.png',
    // 搜索设置
    search: true,
    searchMaxSuggestions: 10,
    // 自动形成侧边导航
    // sidebar: 'auto',
    // 最后更新时间
    lastUpdated: '最后更新时间',
    // 作者
    author: '槐序',
    // 作者头像
    authorAvatar: '/avatar.jpg',
    // 备案号
    record: ' 槐序',
    // 项目开始时间
    startYear: '2017',
    /**
     * 密钥 (if your blog is private)
     */

    // keyPage: {
    //   keys: ['your password'],
    //   color: '#42b983',
    //   lineColor: '#42b983'
    // },
  },
  markdown: {
    lineNumbers: true,
  },
  plugins: [
    [
      //先安装在配置， npm install @vuepress-reco/vuepress-plugin-kan-ban-niang --save
      '@vuepress-reco/vuepress-plugin-kan-ban-niang',
      {
        theme: [
          'blackCat',
          'whiteCat',
          'haru1',
          'haru2',
          'haruto',
          'koharu',
          'izumi',
          'shizuku',
          'wanko',
          'miku',
          'z16',
        ],
        clean: false,
        messages: {
          welcome: '我是lookroot欢迎你的关注 ',
          home: '心里的花，我想要带你回家。',
          theme: '好吧，希望你能喜欢我的其他小伙伴。',
          close: '再见哦',
        },
        width: 240,
        height: 352,
      },
    ],
    [
      //先安装在配置， npm install @vuepress-plugin-meting --save
      'meting',
      {
        metingApi: 'https://api.i-meto.com/meting/api',
        meting: {
          server: 'netease',
          type: 'playlist',
          mid: '621465725',
        }, // 不配置该项的话不会出现全局播放器
        aplayer: {
          lrcType: 3,
        },
      },
    ],
    [
      //彩带背景 先安装在配置， npm install vuepress-plugin-ribbon --save
      'ribbon',
      {
        size: 90, // width of the ribbon, default: 90
        opacity: 0.8, // opacity of the ribbon, default: 0.3
        zIndex: -1, // z-index property of the background, default: -1
      },
    ],
    [
      //鼠标点击特效 先安装在配置， npm install vuepress-plugin-cursor-effects --save
      'cursor-effects',
      {
        size: 3, // size of the particle, default: 2
        shape: ['circle'], // shape of the particle, default: 'star'
        zIndex: 999999999, // z-index property of the canvas, default: 999999999
      },
    ],
    [
      //动态标题 先安装在配置， npm install vuepress-plugin-dynamic-title --save
      'dynamic-title',
      {
        showIcon: '/favicon.ico',
        showText: '(/≧▽≦/)咦！又好了！',
        hideIcon: '/failure.ico',
        hideText: '(●—●)喔哟，崩溃啦！',
        recoverTime: 2000,
      },
    ],
    [
      //图片放大插件 先安装在配置， npm install @vuepress\plugin-medium-zoom --save
      '@vuepress\\plugin-medium-zoom',
      {
        selector: '.page img',
        delay: 1000,
        options: {
          margin: 24,
          background: 'rgba(25,18,25,0.9)',
          scrollOffset: 40,
        },
      },
    ],
    [
      //插件广场的流程图插件 先安装在配置 npm install vuepress-plugin-flowchart --save
      'flowchart',
    ],
    [
      '@vuepress/pwa',
      {
        serviceWorker: true, //vuepress插件PWA 先安装在配置 npm install @vuepress/pwa --save
        updatePopup: {
          message: '发现新内容可用',
          buttonText: '刷新',
        },
      },
    ],
    [
      'vuepress-plugin-nuggets-style-copy',
      {
        copyText: '复制代码',
        tip: { content: '复制成功' },
      },
    ],
  ],
};
